﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns="http://schemas.microsoft.com/pag/gax-core"
        xmlns:xi="http://www.w3.org/2001/XInclude"
        Name="Zip" Bound="false">
  <xi:include href="TypeAliases.xml"/>
  <Caption>Compress with Zip...</Caption>
  <HostData>
    <Icon ID="602" />
    <CommandBar Menu="SZGSolution" />
    <CommandBar Menu="SZGProject" />
    <CommandBar Menu="SZGItem" />
  </HostData>
  <Arguments>
    <Argument Name="ShowExplorer" Type="System.Boolean">
      <ValueProvider Type="Evaluator" Expression="True" />
    </Argument>
    <Argument Name="CopyToClipboard" Type="System.Boolean">
      <ValueProvider Type="Evaluator" Expression="True" />
    </Argument>
    <Argument Name="ExcludeReadme" Type="System.Boolean">
      <ValueProvider Type="Evaluator" Expression="False" />
    </Argument>
    <Argument Name="RemoveSourceControl" Type="System.Boolean">
      <ValueProvider Type="Evaluator" Expression="True" />
    </Argument>
    <Argument Name="FileToZip">
      <ValueProvider Type="SolZipGuidance.ValueProviders.FileNameOfSelectedItemProvider, SolZipGuidance" />
    </Argument>
    <Argument Name="ZipFileName">
      <ValueProvider Type="SolZipGuidance.ValueProviders.ZipFileNameProvider, SolZipGuidance" RecipeArgument="FileToZip" />
    </Argument>
  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0" Help="">
      <Pages>
        <Page>
          <Title>Choose name of Zip file</Title>
          <LinkTitle>Zip</LinkTitle>
          <Fields>
            <Field Label="File to Zip" ValueName="FileToZip" />
            <Field Label="Name of Zipfile" ValueName="ZipFileName" />
            <Field Label="Show resulting file" ValueName="ShowExplorer" />
            <Field Label="Copy path to Clipboard" ValueName="CopyToClipboard" />
            <Field Label="Exclude SolZipReadme.txt" ValueName="ExcludeReadme" />
            <Field Label="Do not include source control bindings" ValueName="RemoveSourceControl" />
          </Fields>
        </Page>
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="Microsoft.Practices.RecipeFramework.Extensions.Coordinators.ConditionalCoordinator, Microsoft.Practices.RecipeFramework.Extensions">
    <Action Name="ExecuteZip" Type="SolZipGuidance.Actions.ZipAction, SolZipGuidance" >
      <Input Name="ZipFileName" RecipeArgument="ZipFileName" />
      <Input Name="FileToZip" RecipeArgument="FileToZip" />
      <Input Name="ExcludeReadme" RecipeArgument="ExcludeReadme" />
      <Input Name="RemoveSourceControl" RecipeArgument="RemoveSourceControl" />
    </Action>
    <Action Name="ShowExplorer" Type="SolZipGuidance.Actions.ShowExplorerAction, SolZipGuidance" Condition="$(ShowExplorer)" >
      <Input Name="Folder" RecipeArgument="ZipFileName" />
    </Action>
    <Action Name="CopyTextToClipBoard" Type="SolZipGuidance.Actions.CopyToClipboardAction, SolZipGuidance" Condition="$(CopyToClipboard)" >
      <Input Name="TextToCopy" RecipeArgument="ZipFileName" />
    </Action>
  </Actions>
</Recipe>
